package com.ssm.service.impl;

import com.ssm.dao.AuthorDao;
import com.ssm.pojo.Author;
import com.ssm.pojo.Manager;
import com.ssm.service.AuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthorServiceImpl implements AuthorService {

    @Autowired
    private AuthorDao authorDao;

    public List<Author> authorList(String amount) {
        return authorDao.authorList(amount);
    }

    public List<Author> find_name(String name) {
        return authorDao.find_name(name);
    }

    public List<Author> find_cdorm(String cdorm) {
        return authorDao.find_cdorm(cdorm);
    }

    public int insertByAuthor(Author author) {
        return authorDao.insertByAuthor(author);
    }

    public int deleteAuthorList(List<String> list) {
        return authorDao.deleteAuthorList(list);
    }

    public int deleteByAmount(String amount) {
        return authorDao.deleteByAmount(amount);
    }

    public int authorUpdate(Author author) {
        return authorDao.authorUpdate(author);
    }
}
